home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Source.bin / LocalPhoneNumber.java < prev    next >
Text File  |  1998-08-21  |  1KB  |  45 lines

  1. package symantec.itools.awt.util.edit;
  2.  
  3.  
  4. /**
  5.  *
  6.  * Creates a formatted text field in which your user can type in a phone number.
  7.  * LocalPhoneNumber limits the type of text that can be entered in the text
  8.  * box to a local U.S. phone number (seven-digit number).
  9.  * Text formatting logic is applied to the user input.
  10.  * If the text field already contains text, the user can select the default text
  11.  * and delete or edit it.
  12.  *
  13.  *
  14.  * @see symantec.itools.awt.FormattedTextField
  15.  *
  16.  * @version 1.0, Nov 26, 1996
  17.  *
  18.  * @author    Symantec
  19.  *
  20.  */
  21.  
  22.  
  23. public class LocalPhoneNumber
  24.     extends PhoneNumber
  25. {
  26.     /**
  27.      * Create local phone number text field.  This is a formatted text field
  28.      * with the following format: 999/-9999
  29.      */
  30.     public LocalPhoneNumber()
  31.     {
  32.         super(8);
  33.  
  34.         super.setMask("999/-9999");
  35.     }
  36.  
  37.     /**
  38.      * Takes no action.  Overrides setMask in FormattedTextField to prevent
  39.      * alteration of the local phone number mask.
  40.      */
  41.     public void setMask(String s)
  42.     {
  43.     }
  44. }
  45.